package top.littleze.aiattendance.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import top.littleze.aiattendance.entity.AttendanceUserEntity;
import top.littleze.aiattendance.service.AdminService;
import top.littleze.aiattendance.utils.page.Reply;

import java.util.List;

/**
 * @Author ZhaoGengze
 * @Date 2021/7/9 11:36
 */

@RestController
@ResponseBody
@RequestMapping("/admin")
public class AdminController {

    @Autowired
    AdminService adminService;

    @RequestMapping("/user")
    public Reply<List<AttendanceUserEntity>> getUser() {
        return adminService.getUser();
    }
}
